const arr1: Array<number> = [1,23,3]

const arr2:number[] = [1,23,4]

// example:
function sum(...args:number[]){
    return args.reduce((prev, current)=>prev+current,0)
}

console.log(sum(1,2,4))